'use strict';
const d = require('../dao/d');

module.exports = function (router) {
    router.get('/sql', async (ctx, next) => {
        let sql = ctx.query.sql;
        console.log(sql);
        await d.handleSql(sql);
        ctx.response.body = '入库成功';
    });
}